from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

from firstdjango.views import root, hello, current_datetime, hours_ahead, authors

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'firstdjango.views.home', name='home'),
    # url(r'^firstdjango/', include('firstdjango.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    url(r'^admin/', include(admin.site.urls)),
    
    (r"^$", root),
    (r"^hello/$", hello),
    (r"^time/$", current_datetime),
    (r"^time/plus/(\d{1,3})/$", hours_ahead),
    (r"^authors/$", authors),
)
